#ifndef HFLOATINGDIALOG_H
#define HFLOATINGDIALOG_H

#include "devcommon_global.h"

#include <QMessageBox>
#include <QWidget>
#include <QTimer>

class DEVCOMMONSHARED_EXPORT HFloatingDialog : public QMessageBox
{
    Q_OBJECT
public:
    explicit HFloatingDialog(QWidget *parent = nullptr);

    void setDuration(int msec);

    void show();
    void exec();
public slots:
    void onTimeout();

private:
    QTimer mTimer;
    int mDuration;
};

#endif // HFLOATINGDIALOG_H
